<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
<script>
	var txt = "hello 1234567890 hello byebye";
	zz = /\d/g
	//document.write( txt.replace(zz,'hi'))

	//replace
	//search
	//split
	//match
	document.write( txt.match(zz) )
</script>
</body>
</html>